<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test.js"></script>
</head>
<body id="body">

<select id="selectBox">
</select>
<p id="description"></p>
<div id="console"></div>

<script>

    description("This tests that there's no crash when accessising the stringValue of a menu list that has no elements.");

    if (window.accessibilityController) {
       document.getElementById("selectBox").focus();
       var selectBox = accessibilityController.focusedElement;

       // this call should not crash. 
       var stringValue = selectBox.stringValue;
    }

</script>

</body>
</html>
